package com.easy.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easy.common.bean.SysRole;
import org.apache.dubbo.remoting.http12.rest.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<SysRole> {
    @Select("SELECT permission_id FROM sys_role_permission WHERE role_id = #{roleId}")
    List<Integer> getPermissionIdsByRoleId(@Param("roleId") Integer roleId);
}
